from django.urls import path
from . import views

urlpatterns = [
    # GET http://www.meiduo.site:8000/usernames/itcast/count/
    path('usernames/<username:username>/count/', views.UserNameCountView.as_view()),

    # GET http://www.meiduo.site:8000/mobiles/15911520667/count/
    path('mobiles/<mobile:mobile>/count/', views.MobileCountView.as_view()),

    # post http://www.meiduo.site:8000/register/
    path('register/', views.RegisterView.as_view()),

    # post http://www.meiduo.site:8000/login/
    path('login/', views.LoginView.as_view()),

    # delete http://www.meiduo.site:8000/logout/
    path('logout/', views.LogoutView.as_view()),

    # get http://www.meiduo.site:8000/info/
    path('info/', views.UserInfoView.as_view()),

    # put http://www.meiduo.site:8000/emails/
    path('emails/', views.EmailView.as_view()),

    # put http://www.meiduo.site:8000/emails/
    path('emails/verification/', views.EmailActiveView.as_view()),

    # post http://www.meiduo.site:8000/addresses/create/
    path('addresses/create/', views.CreateAddressView.as_view()),

    # 获取收货地址:GET http://www.meiduo.site:8000/addresses/
    path('addresses/', views.AddressView.as_view()),

    # 用户浏览记录:POST/browse_histories/
    path('browse_histories/', views.UserBrowseHistory.as_view()),
]